CFLAGS=-c `pkg-config --cflags python3` -fpic
topy.so:libtopy.o libp.a
	gcc -o topy.so -shared -lpthread libtopy.o libp.a
libtopy.o:libtopy.c
	gcc $(CFLAGS) libtopy.c
libp.a:p1.go p1.h
	go build -o libp.a -ldflags="-s -w" -buildmode=c-archive p1.go
